<?php echo form_open('users/update'); ?>

  <?php foreach($result as $row) { ?>
	<p>UID: <input type="text" name="id" id="id" value="<?php echo $row->id; ?>"></p>
	<p>Nick Name: <input type="text" name="nickname" id="nickname" value="<?php echo $row->nickname; ?>"></p>
	<p>Email Address: <input type="text" name="email" id="email" value="<?php echo $row->email; ?>"></p>
	<p>Facebook UID: <input type="text" name="fb_uid" id="fb_uid" value="<?php echo $row->fb_uid; ?>"></p>
	<p>Current City: <input type="text" name="city" id="city" value="<?php echo $row->current_city; ?>"></p>
	<p><?php echo form_submit('update','Update'); ?></p>
   <?php } ?>
	<?php echo form_close(); ?>
	<?php echo validation_errors(); ?>